//
//  ICEmpInfoModel.m
//  ICome
//
//  Created by zhangrongwu on 16/3/22.
//  Copyright © 2016年 iCom. All rights reserved.
//

#import "ICEmpInfoModel.h"

@implementation ICEmpInfoModel

- (instancetype)initWithDict:(NSDictionary *)dict {
    if (self = [super init]) {
        if ([dict isKindOfClass:[NSDictionary class]]) {
            [self setValuesForKeysWithDictionary:dict];
            self.hide = @"0";
            self.select = NO;
            self.isLastRootNode = NO;
            self.isOpen = NO;
            self.email = [dict[@"email"] lowercaseString];
            if (![dict[@"phone"] isEqualToString:@"暂无"]) {
                self.phone = dict[@"phone"];
            } else {
                self.phone = @"";
            }
        }
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
}
- (BOOL)isOrg {
    if ([ICTools stringEmpty:self.eId]) {
        return YES;
    }
    return NO;
}


@end
